#ifndef __PRAGMASOUND_H__
#define __PRAGMASOUND_H__

#include <stdio.h>

typedef struct PRAGMASOUND PRAGMASOUND;

PRAGMASOUND *pragmasound_open(const char *fn);
void pragmasound_close(PRAGMASOUND *pragmasound);
int pragmasound_read(PRAGMASOUND *pragmasound, float *target, size_t values);
void pragmasound_seek(PRAGMASOUND *pragmasound, size_t frames);
size_t pragmasound_get_num_frames(PRAGMASOUND *pragmasound);
int pragmasound_get_num_channels(PRAGMASOUND *pragmasound);
int pragmasound_get_samplerate(PRAGMASOUND *pragmasound);
int pragmasound_eof(PRAGMASOUND *pragmasound);
char *pragmasound_get_error();

#endif
